/**
 * Copyright (c) 2025 myons Inc. All rights reserved.
 */
package cn.zmwh.common.security.pojo;

import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @describe: 方法角色 、
 * @author: dmzmwh 、
 * @time: 2025-03-17 15:27 、
 */
@Data
public class MethodRole implements Serializable {

    String url;
    String name;
    String role;


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof MethodRole)) return false;
        MethodRole that = (MethodRole) o;
        return Objects.equals(getUrl(), that.getUrl()) && Objects.equals(getName(), that.getName()) && Objects.equals(getRole(), that.getRole());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getUrl(), getName(), getRole());
    }
}
